package es.udc.fbellas.j2ee.tiendaweb.model.usuariofacade.TO;

import java.io.Serializable;

public class LoginResultTO implements Serializable {

    private String nombre;
    private String country;
    private String language;
    private String encryptedPassword;

    public LoginResultTO(String nom, String encryptedPassword, String lan, String coun) {
        
        this.nombre = nom;
        this.encryptedPassword = encryptedPassword;
        this.country=coun;
        this.language=lan;
    }
    
    public String getNombre() {
        return nombre;
    }
    
    public String getEncryptedPassword() {
        return encryptedPassword;
    }
    
    public String toString() {
        return new String("nombre = " + nombre + " | " +
            "encryptedPassword = " + encryptedPassword);
    }

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public void setEncryptedPassword(String encryptedPassword) {
		this.encryptedPassword = encryptedPassword;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}
    
    /* Test code. Uncomment for testing. */
//    public static void main (String[] args) {
//    
//        LoginResultVO loginResultVO = new LoginResultVO("Fernando",
//            "YYYYYYYY", "gl", "ES");
//            
//        System.out.println(loginResultVO);
//        
//    }    

}
